how to find poles of solenoid